import request from '@/utils/request'

// 查询指标别名列表
export function listWordOnlineKeyAlias(query) {
  return request({
    url: '/word/wordOnlineKeyAlias/list',
    method: 'get',
    params: query
  })
}

// 查询指标别名详细
export function getWordOnlineKeyAlias(id) {
  return request({
    url: '/word/wordOnlineKeyAlias/' + id,
    method: 'get'
  })
}

// 保存指标别名
export function saveWordOnlineKeyAlias(data) {
  return request({
    url: '/word/wordOnlineKeyAlias/save',
    method: 'post',
    data: data
  })
}

// 删除指标别名
export function delWordOnlineKeyAlias(id) {
  return request({
    url: '/word/wordOnlineKeyAlias/' + id,
    method: 'delete'
  })
}

// 导出指标别名
export function exportWordOnlineKeyAlias(query) {
  return request({
    url: '/word/wordOnlineKeyAlias/export',
    method: 'get',
    params: query
  })
}
